<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/22
  Time: 12:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    //jsp中的局部变量
    int i = 9;
%>
<h1><%=i++%></h1>
<%!
    //jsp中的全局变量
    int j = 9;
%>
<h1><%=j++%></h1>
<%!
    public int add(){
        return 8+9;
    }
%>
<%=add()%>
</body>
</html>
